const Router = require('koa-router')
const { generateCaptcha } = require('../../controller/v1/captcha')
const { createValidator } = require('../../middleware/validator/captcha')
const PREFIX = '/v1'
const router = new Router({ prefix: PREFIX })

// 生成验证码
router.get('/captcha', createValidator, generateCaptcha)

module.exports = router
